int lectura = 0;

void setup() { Serial.begin(9600); }

void loop() {
  lectura = digitalRead(2);
  if (lectura == HIGH){ 
    Serial.println("Sonido detectado");
    delay(100);		
  }
}


